package com.xiejr.actuator.model;

import com.xiejr.actuator.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @program: socket-actuator-spring-boot-starter
 * @description: 安全模式实体
 * @author: xjr
 * @create: 2020-06-29 16:41
 **/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ConfigurationProperties(prefix = "socket.actuator.security",ignoreUnknownFields = true,ignoreInvalidFields = true)
@ConditionalOnProperty(prefix ="socket.actuator.security",name = "enable",havingValue = "true")
@Configuration
public class SecurityModel extends BaseEntity {

    private String userName;

    private String password;

    /**
     *0 普通表单 1 人脸
     */
    private Integer passWay=0;

    private String fullName;
}
